package menu

import (
	"net/http"

	"go-zero-admin/apps/sys/api/internal/logic/sys/menu"
	"go-zero-admin/apps/sys/api/internal/svc"
	"go-zero-admin/pkg/response"
)

func GetSysPermMenuListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := menu.NewGetSysPermMenuListLogic(r.Context(), svcCtx)
		resp, err := l.GetSysPermMenuList()

		response.Response(w, resp, err)
	}
}
